#include "ExportWorker.h"

ExportWorker *ExportWorker::getInstance()
{
    static ExportWorker singleton{};
    return &singleton;
}

void ExportWorker::run()
{
    for (;;) {
        QThread::msleep(800);
        g_mutex.lock();
        if (g_running < 0) {
            g_mutex.unlock();
            continue;
        }
        g_mutex.unlock();
    }
}

ExportWorker::ExportWorker()
{

}
